package com.enhe.gck.communal;

import com.enhe.gck.com.oracle.OracleController;
import com.enhe.gck.com.oracle.OracleEntity;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.AsyncResult;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.concurrent.Future;

@Service
public class AsyncImpl {

    @Resource
    private OracleController oracleController;

    @Async
    public void savePickup(List<OracleEntity.Pickup> list) {
        oracleController.savePickup(list);
    }

    @Async
    public void saveRecharge(List<OracleEntity.Recharge> list) {
        oracleController.saveRecharge(list);
    }

    @Async
    public void saveOrder(List<OracleEntity.Order> list){
        oracleController.saveOrder(list);
    }
    @Async
    public void deleteOrder(OracleEntity.DeleteOrder info){
        oracleController.deleteOrder(info);
    }

}
